-- GENERATED SPELL FOR [Venture Co. Geologist] --


function spell0_1096(pUnit, Event) --@Fire Shield II,n/a--
pUnit:FullCastSpellOnTarget(184,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1096', 1000, 1)
end

function spell1_1096(pUnit, Event) --@Lightning Bolt,n/a--
pUnit:FullCastSpellOnTarget(9532,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1096', 3000, 1)
end

function spell2_1096(pUnit, Event) --@Quick Flame Ward,n/a--
pUnit:FullCastSpellOnTarget(4979,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1096', 11500, 1)
end

function Sorts_1096(pUnit, Event)
local choix_sorts_1096 = math.random(0, 2)
if choix_sorts_1096 == 0 then
pUnit:RegisterEvent('spell0_1096', 1, 1)
end
if choix_sorts_1096 == 1 then
pUnit:RegisterEvent('spell1_1096', 1, 1)
end
if choix_sorts_1096 == 2 then
pUnit:RegisterEvent('spell2_1096', 1, 1)
end
end

function mob1096_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1096', math.random(1500, 3000), 1)
end

function mob1096_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1096_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1096_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1096, 1, 'mob1096_Action')
RegisterUnitEvent(1096, 2, 'mob1096_Leave')
RegisterUnitEvent(1096, 3, 'mob1096_Kill')
RegisterUnitEvent(1096, 4, 'mob1096_Die')
